<div class="sidebar">
    <ul>
        <li>
            <!-- Begin BidVertiser code -->
            <script language="JavaScript1.1" src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=460652&bid=1237436" type="text/javascript"></script>
            <noscript><a href="http://www.bidvertiser.com/bdv/BidVertiser/bdv_xml_feed.dbm">xml search</a></noscript>
            <!-- End BidVertiser code -->
        </li>
        <li>
            <h2>Recent Comments</h2>
            <ul>
                {% for comment in recent_comments %}
        <li><a href="/{{comment.entry.link}}#comment-{{comment.key.id}}">{{comment.author}}:{{comment.shortcontent}}...</a> </li>
                {%endfor%}
            </ul>
        </li>

        <li>
            <h2>Categories</h2>
            <ul>
                {%for cate in categories%}
  <li><a href="/category/{{cate.slug|urlencode}}">{{cate.name}}({{cate.count}})</a></li>
                {%endfor%}
            </ul>

        </li>

        <li>
            <h2>Blog roll</h2>
            <ul>
                {%for link in blogroll%}
                <li><a href="{{link.href}}">{{link.linktext}}</a></li>
                {%endfor%}

            </ul>
        </li>


    </ul>
</div>
